/*
Copyright (c) ILOG 1995-2008.  All rights reserved.

This source code is intended only as a supplement to ILOG's product documentation.

THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
*/

package loan;

import java.util.Calendar;

/**
 * Test
 */
public class Test {
	
	public static void main(String[] args) {
		Borrower b1 = new Borrower("John", "Doe", DateUtil.makeDate(1968, Calendar.MAY, 12), "123456789");
		b1.setCreditScore(600);
		b1.setYearlyIncome(100000);
		b1.setLatestBankruptcy(DateUtil.makeDate(1990,Calendar.JANUARY,01), 7, "Unemployment");
		System.out.println(b1);
		
		Borrower b2 = new Borrower("John", "Doe", DateUtil.makeDate(1970, Calendar.MAY, 12), "123-45-6789");
		System.out.println(b2);
		
		Borrower b3 = new Borrower("John", "Doe", DateUtil.makeDate(1970, Calendar.MAY, 12), "123-12345678");
		System.out.println(b3);
		
		Loan l1 = new Loan(DateUtil.makeDate(2005, Calendar.JUNE, 1), 60, 100000, .70);
		System.out.println(l1);
		
		Report r1 = new Report(b1, l1);
		r1.setCorporateScore(b1.getCreditScore());
		r1.addCorporateScore(12);
		
		System.out.println(r1);
		
	}

}
